package com.libbase.kotlin.presenter

import com.chan.net.Result
import com.libbase.bean.NyqfBean
import com.base.kotlin.IModel
import com.base.kotlin.mvp.IView
import io.reactivex.Flowable

interface NewContract {
    interface Model : IModel<NyqfContract.Api> {
        fun getNews(nav: String): Flowable<Result<NyqfBean>>
    }

    interface View : IView {
        fun onNewsSuccess(result: Result<NyqfBean>)
    }

    interface Presenter {
        fun getNews(nav: String)
    }
}